SensibillSDK
SensibillSDK.kt
Acts as main authentication point for Sensibill SDK. Contains main functionality to initialize, start and release SDK
How to use the library:
InitializationBuilder initializerBuilder = new InitializationBuilder(...)
SensibillSDK.INSTANCE.initialize(initializerBuilder.build());
SensibillSDK.INSTANCE.start(userIdentifier, new Startup() {
void onSDKStarted() {
// Start any activity related to the library
}
void onSDKFailed(LoginError loginError, String errorMessage) {
// SDK failed to start. Unable to use library
}
});
Functions
addReceiptDataObserver
Link copied to clipboard
open override fun addReceiptDataObserver(receiptDataObserver: ReceiptDataObserver): Boolean
Content copied to clipboard
Adds a ReceiptDataObserver to be notified when receipt events occur.
addSDKErrorObserver
Link copied to clipboard
open override fun addSDKErrorObserver(sdkErrorObserver: SDKErrorObserver): Boolean
Content copied to clipboard
Adds an SDKErrorObserver to be notified when the TokenProvider encounters an error.
addSDKLifecycleObserver
Link copied to clipboard
open override fun addSDKLifecycleObserver(sdkLifecycleObserver: SDKLifecycleObserver): Boolean
Content copied to clipboard
Adds a SDKLifecycleObserver to be notified when lifecycle events occur.
addTransactionDataObserver
Link copied to clipboard
open override fun addTransactionDataObserver(transactionDataObserver: TransactionDataObserver): Boolean
Content copied to clipboard
Adds a TransactionDataObserver to be notified when transaction events occur.
getInstance
Link copied to clipboard
getSession
Link copied to clipboard
getUserIdentifier
Link copied to clipboard
Get the user identifier of the currently authenticated userThis method should only be called after start.
initialize
Link copied to clipboard
open override fun initialize(initializer: Initializer, listener: SDKInitializeListener)
Content copied to clipboard
removeReceiptDataObserver
Link copied to clipboard
open override fun removeReceiptDataObserver(receiptDataObserver: ReceiptDataObserver): Boolean
Content copied to clipboard
Removes a ReceiptDataObserver from the list of observers
removeSDKErrorObserver
Link copied to clipboard
open override fun removeSDKErrorObserver(sdkErrorObserver: SDKErrorObserver): Boolean
Content copied to clipboard
Removes a SDKErrorObserver from the list of observers
removeSDKLifecycleObserver
Link copied to clipboard
open override fun removeSDKLifecycleObserver(sdkLifecycleObserver: SDKLifecycleObserver): Boolean
Content copied to clipboard
Removes a SDKLifecycleObserver from the list of observers
removeTransactionDataObserver
Link copied to clipboard
open override fun removeTransactionDataObserver(transactionDataObserver: TransactionDataObserver): Boolean
Content copied to clipboard
Removes a TransactionDataObserver from the list of observers
restore
Link copied to clipboard
start
Link copied to clipboard